// import Cookies from 'js-cookie'
// 应用相关信息
const state = {
    // 是否折叠：默认false
    isCollapse: false,
    // 面包屑
    breadcrumb: [],
    // 当前路由
    activePath: ''
}

const mutations = {
    SET_ISCOLLAPSE: (state, isCollapse) => {
        state.isCollapse = isCollapse;
    },
    SET_BREADCRUMB: (state, breadcrumb) => {
        state.breadcrumb = breadcrumb;
    },
    SET_ACTIVEPATH: (state, activePath) => {
        state.activePath = activePath;
    }
}
const actions = {}
export default {
    namespaced: true,
    state,
    mutations,
    actions
}
